package com.example.dormitorysystem.mapper;

import com.example.dormitorysystem.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吉吉王国组
 * @since 2022-11-13
 */
public interface UsersMapper extends BaseMapper<Users> {

    @Update("update users set last_login_time = #{login_time} where uid = #{uid}")
    void updateLoginTime(@Param("login_time") Date date, @Param("uid") Integer uid);
}
